package com.yixun.qfbao;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.PropertySource;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableTransactionManagement
@EnableAutoConfiguration
@PropertySource(value = {"classpath:application.properties"},encoding="UTF-8")
@MapperScan(basePackages = {"com.yixun.qfbao.mapper", "com.yixun.qfbao.xf.mapper"})
@EnableScheduling
public class ChannelJobsApplication extends SpringBootServletInitializer {
	
	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(ChannelJobsApplication.class);
	}
	
	public static void main(String[] args)
		throws Exception {
		SpringApplication.run(ChannelJobsApplication.class, args);
	}
}
